<?php
/*
+-----------------------------------------------------------------------------+
| $Id: configure.php 2010-05-24 12:37:44Z Bleakwind $
| Config public Variable
| Copyright (c) 2003-2010 Bleakwind (www.weaverdream.com)
| http://www.weaverdream.com/
| Release under the GNU Lesser General Public License Version 3 (LGPLv3):
|   http://www.gnu.org/licenses/lgpl.html
+-----------------------------------------------------------------------------+
*/

// sys configure
$CONFIGURE['sys'] = array(
    'cookie_prefix'             => CONFIG_COOKIE_PREFIX != "" ? CONFIG_COOKIE_PREFIX : "firmkernel_",
    'cookie_lifetime'           => CONFIG_COOKIE_LIFETIME == "auto" ? ((int)ini_get("session.gc_maxlifetime") > 0 ? (int)ini_get("session.gc_maxlifetime") : 1440) : 0,
    'cookie_path'               => CONFIG_COOKIE_PATH != null ? CONFIG_COOKIE_PATH : null,
    'cookie_domain'             => CONFIG_COOKIE_DOMAIN != null ? CONFIG_COOKIE_DOMAIN : null,

    'encrypt_mix'               => "bleakwind",
    'lifetime'                  => (int)ini_get("session.gc_maxlifetime") > 0 ? (int)ini_get("session.gc_maxlifetime") : 1440,
);

// common configure
$CONFIGURE['common'] = array(
    'control_admin'             => "admin.php",
    'control_index'             => "index.php",
    'if_output_template'        => "1",
);

// database configure
$CONFIGURE['database'] = array(
    'hostname'                  => CONFIG_DB_HOSTNAME,
    'username'                  => CONFIG_DB_USERNAME,
    'password'                  => CONFIG_DB_PASSWORD,
    'database'                  => CONFIG_DB_DATABASE,
    'charset'                   => CONFIG_DB_CHARSET,
    'type'                      => CONFIG_DB_TYPE,
    'prefix'                    => CONFIG_DB_PREFIX,
    'table_session'             => DB_TABLE_SESSION,
);

// module configure
$CONFIGURE['module'] = array(
    'index'                     => "index",

    'register'                  => "register",
    'login'                     => "login",
    'forgetpass'                => "forgetpass",

    'channel'                   => "channel",
    'content'                   => "content",
    'search'                    => "search",
    'attach'                    => "attach",

    'cp'                        => "cp",
    'cp_password'               => "cp_password",
    'cp_profile'                => "cp_profile",
    'cp_prompt'                 => "cp_prompt",

    'curve'                     => "curve",
    'verifycode'                => "verifycode",
    'prompt'                    => "prompt",
);
?>
